import request from '@/utils/request'

// 查询日统计表列表
export function listDayreport(query) {
  return request({
    url: '/statistic/dayreport/list',
    method: 'get',
    params: query
  })
}

// 查询日统计表详细
export function getDayreport(dayReportStatisticId) {
  return request({
    url: '/statistic/dayreport/' + dayReportStatisticId,
    method: 'get'
  })
}

// 新增日统计表
export function addDayreport(data) {
  return request({
    url: '/statistic/dayreport',
    method: 'post',
    data: data
  })
}

// 修改日统计表
export function updateDayreport(data) {
  return request({
    url: '/statistic/dayreport',
    method: 'put',
    data: data
  })
}

// 删除日统计表
export function delDayreport(dayReportStatisticId) {
  return request({
    url: '/statistic/dayreport/' + dayReportStatisticId,
    method: 'delete'
  })
}
